import {
  Column,
  PrimaryGeneratedColumn,
  CreateDateColumn,
  UpdateDateColumn
} from 'typeorm'
import { EntityModel } from '@midwayjs/orm'
@EntityModel('ie_attachment')
export class Attachment {

  @PrimaryGeneratedColumn()
  id: number;

  @Column({
    comment: '原始文件名',
    length: 100
  })
  filename: string;

  @Column({
    comment: '文件后缀',
    length: 12
  })
  ext: string;

  @Column({
    comment: '文件地址',
    length: 200
  })
  filepath: string;

  @CreateDateColumn({
    comment: '创建时间'
  })
  create_at: Date;

  @UpdateDateColumn({
    comment: '更新时间'
  })
  update_at: Date;
}
